<template>
  <div class="info">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="轮播图设置" name="1">
        <lunbo v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="每周精选设置" name="2">
        <week v-if="activeName === '2'"/>
      </el-tab-pane>
      <el-tab-pane label="发现页栏目管理" name="3">
        <make-table v-if="activeName === '3'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import makeTable from './components/mbcontent/mbDrag'
import Lunbo from './components/mbcontent/setlunbo'
import Week from './components/mbcontent/weeknew'
export default {
  components: {
    makeTable,
    Lunbo,
    Week
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss">
.info {
  padding: 0px 20px;
}
</style>
